import request from '@/utils/request'

// 查询保障文本域详情列表
export function listSafe(query) {
  return request({
    url: '/guanyu/safe/list',
    method: 'get',
    params: query
  })
}

// 查询保障文本域详情详细
export function getSafe(safeId) {
  return request({
    url: '/guanyu/safe/' + safeId,
    method: 'get'
  })
}

// 新增保障文本域详情
export function addSafe(data) {
  return request({
    url: '/guanyu/safe',
    method: 'post',
    data: data
  })
}

// 修改保障文本域详情
export function updateSafe(data) {
  return request({
    url: '/guanyu/safe',
    method: 'put',
    data: data
  })
}

// 删除保障文本域详情
export function delSafe(safeId) {
  return request({
    url: '/guanyu/safe/' + safeId,
    method: 'delete'
  })
}

// 导出保障文本域详情
export function exportSafe(query) {
  return request({
    url: '/guanyu/safe/export',
    method: 'get',
    params: query
  })
}
